package com.gyp.feign;

import com.gyp.dto.user.CreateAnimationTaskDTO;
import com.gyp.vo.video.AnimationTaskDetailVO;
import com.gyp.vo.video.ScriptVideoCreateVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;


/**
 * @author xia
 * @Description: 华为云相关api
 * @date 2022/12/28
 */
@FeignClient(name = "voiceVideoService", url = "${iam.baseUrl}")
public interface VoiceVideoFeignClient {



    /**
     * 创建音频动画任务
     * @param param
     * @return
     */
    @PostMapping("/ttsa/fas")
    ScriptVideoCreateVO createAnimationTask(@RequestBody CreateAnimationTaskDTO param);

    /**
     * 查询音频任务详情
     * @param jobId
     * @return
     */
    @GetMapping("/fas-jobs/{jobId}")
    AnimationTaskDetailVO getAnimationTask(@PathVariable("jobId") String jobId);
}
